﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/List.Master"  AutoEventWireup="true" CodeBehind="BD_Payment_List.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Contract.BD_Payment_List"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">		
    <div class="query_area">
		标识：<asp:TextBox ID="txtID" runat="server"  cssClass="input2" MaxLength="36"></asp:TextBox>&nbsp;&nbsp;
		合同标识：<asp:TextBox ID="txtContractID" runat="server"  cssClass="input2" MaxLength="36"></asp:TextBox>&nbsp;&nbsp;
		支付单号：<asp:TextBox ID="txtPaymentCode" runat="server"  cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
		本期实际支付：<asp:TextBox ID="numAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();"></asp:TextBox>&nbsp;&nbsp;
		支付日期：<asp:TextBox ID="dtpPaymentDate" runat="server" cssClass="input2" onfocus="setday(this);"></asp:TextBox>&nbsp;&nbsp;
		至本期累计支付：<asp:TextBox ID="numTotalAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();"></asp:TextBox>&nbsp;&nbsp;
		本期合同金额：<asp:TextBox ID="numContractAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();"></asp:TextBox>&nbsp;&nbsp;
		累计支付百分比：<asp:TextBox ID="numTotalPercent" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();"></asp:TextBox>&nbsp;&nbsp;
		费用类别：<asp:DropDownList ID="ddlPaymentType" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		支付来源：<asp:DropDownList ID="ddlPaymentSource" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		备注：<asp:TextBox ID="txtRemark" runat="server"  cssClass="input2" MaxLength="16"></asp:TextBox>&nbsp;&nbsp;
		业务状态：<asp:DropDownList ID="ddlPaymentBuState" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		创建人：<asp:TextBox ID="txtCreator" runat="server"  cssClass="input2" MaxLength="36"></asp:TextBox>&nbsp;&nbsp;
		创建日期：<asp:TextBox ID="dtpCreateTime" runat="server" cssClass="input2" onfocus="setday(this);"></asp:TextBox>&nbsp;&nbsp;
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>            
    <div class="button_area">
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"/>
        <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="删 除" 
            OnClientClick="javascript:return getNoSelectionAlert('chkID','请选择要删除的记录后在执行此操作！');"             
            onclick="btnDelete_Click" />
    </div>
            
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>
            <th align="center">标识</th>
            <th align="center">合同标识</th>
            <th align="center">支付单号</th>
            <th align="center">本期实际支付</th>
            <th align="center">支付日期</th>
            <th align="center">至本期累计支付</th>
            <th align="center">本期合同金额</th>
            <th align="center">累计支付百分比</th>
            <th align="center">费用类别</th>
            <th align="center">支付来源</th>
            <th align="center">备注</th>
            <th align="center">业务状态</th>
            <th align="center">创建人</th>
            <th align="center">创建日期</th>
            <th width="120px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
						<input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ID") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ContractID") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"PaymentCode") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"Amount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"PaymentDate") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"TotalAmount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ContractAmount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"TotalPercent") %></td>
					<td><%# Honestysoft.DictionaryHelper.DictionaryInstance.GetDictionaryText(DataBinder.Eval(Container.DataItem,"PaymentType")+"") %></td>
					<td><%# Honestysoft.DictionaryHelper.DictionaryInstance.GetDictionaryText(DataBinder.Eval(Container.DataItem,"PaymentSource")+"") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"Remark") %></td>
					<td><%# Honestysoft.EnumHelper.EnumInstance.GetEnumDataText(DataBinder.Eval(Container.DataItem,"PaymentBuState")+"") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"Creator") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"CreateTime") %></td>
					<td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem,"ID")+"") %>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
        <tr>
            <td colspan="16" style="line-height: 28px;text-align:left;">
                <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>            
            </td>
        </tr>
    </table>
</asp:Content>